package com.gujiangbo.application.common.trace;

public class TraceFactory {
	private static ITraceLinkMessageFactory factory = (ITraceLinkMessageFactory) InstanceLoader.loader(ITraceLinkMessageFactory.class);

	public static ITraceLinkMessage createTraceLinkMessage(String calledNodeID, String calledClusterId, String flag,
			String appName, String subSysName, String protocol, int level) {
		if (factory == null) {
			return null;
		}
		return factory.createTraceLinkMessage(calledNodeID, calledClusterId, flag, appName, subSysName, protocol,level);
	}
	public static ITraceLinkMessage createTraceLinkMessage(int level) {
		if (factory == null) {
			return null;
		}
		return factory.createTraceLinkMessage(level);
	}
}
